package com.mywork.service;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.SessionAttributes;

import com.mywork.po.User;



@Component
public class PermissionUtil {
	
	public static boolean isHavePermission(User user,int permission,int testPermission){
		
		if(user==null){
			return false;
		}else if(permission!=testPermission){
			return false;
		}else{
			return true;
		}
	}
}
